import request from "@/utils/request"

/**
 * @description 获取种草
 */

export const getComments = data =>
    request({
        method: 'POST',
        url: '/frontend/article/list',
        data: data,
    })


/**
 * @description 新增种草
 */

export const addCommentApi = data =>
    request({
        method: 'POST',
        url: '/frontend/article/add',
        data,
    })

/**
 * @description 种草详情
 */

export const commentDetail = data =>
    request({
        method: 'POST',
        url: '/frontend/article/detail/',
        data,
    })

    /**
 * @description 添加种草评论
 */

export const addComment = data =>
request({
    method: 'POST',
    url: '/frontend/comment/add/',
    data,
})
